#ifndef REGISTER_H
#define REGISTER_H
#define DOCTOR 0
#define PATIENT 1

#include<QTcpSocket>
#include <QDialog>
#include "../Tools/clienttcp.h"

QT_BEGIN_NAMESPACE
namespace Ui { class Register; }
QT_END_NAMESPACE

class Register : public QDialog
{
    Q_OBJECT

public:
    Register(QWidget *parent = nullptr);
    ~Register();

signals:
    void finish();

private slots:
    void on_pushButton_2_clicked();

    void on_pushButton_clicked();

private:
    Ui::Register *ui;
    QTcpSocket *socket;
    ClientTcp *tcp;
};
#endif // REGISTER_H
